package org.example.finance.bean;

/**
 * @author huangqihan
 * @date 2021/2/22
 */
public class TransactionRecord {
    private Long id;
    private Long transactionTime;
    private Type type;

    public TransactionRecord() {
    }

    public TransactionRecord(Long id, Long transactionTime, Type type) {
        this.id = id;
        this.transactionTime = transactionTime;
        this.type = type;
    }

    public enum Type {
        ENTRUST,
        DEAL
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTransactionTime() {
        return transactionTime;
    }

    public void setTransactionTime(Long transactionTime) {
        this.transactionTime = transactionTime;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("TransactionRecord{");
        sb.append("id=").append(id);
        sb.append(", transactionTime=").append(transactionTime);
        sb.append(", type=").append(type);
        sb.append('}');
        return sb.toString();
    }
}
